x86: allow passing initrd to kernel without exposing it through the initial mapping
authorKeir Fraser <keir@xen.org>
Tue, 9 Nov 2010 11:50:14 +0000 (11:50 +0000)
committerKeir Fraser <keir@xen.org>
Tue, 9 Nov 2010 11:50:14 +0000 (11:50 +0000)
commit9f41c22a559a7ec039a195f6dc8bca32c66fcd5a
tree5653b49c08df067083bd24123a2cbb5539c2ede7
parent5a771800114c437fb857b44b3ed74f60e87979c2
x86: allow passing initrd to kernel without exposing it through the initial mapping

The (Dom0 only for now) kernel can indicate that it doesn't need its
initrd mapped through a newly added ELF note - it gets passed the PFN
of the initrd in this case instead of the virtual address.

Even for kernels not making use of the new feature, the initrd will
no longer get copied into the initial mapping, but the memory it lives
in will get assigned to and mapped for the guest instead.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/domain_build.c
xen/common/libelf/libelf-dominfo.c
xen/include/asm-x86/setup.h
xen/include/public/elfnote.h
xen/include/public/xen.h